/* 版心的公共类 */

.container {
  width: 1240px;
  margin: 0 auto;
}

/* 快捷菜单模块: xtx-shortcut */

.xtx-shortcut {
  /* 这行代码的主要作用是:
  解决在浏览器缩小之后,窗口超出1240px之后, 最右边的背景颜色消失问题, 没其它作用 */
  min-width: 1240px;
  height: 52px;
  background-color: #333;
}

.xtx-shortcut .container {
  height: 52px;
}

.xtx-shortcut ul li {
  float: left;
  line-height: 52px;
  color: #666;
}

.xtx-shortcut ul a {
  margin: 0 16px;
  color: #dcdcdc;
  font-size: 14px;
}

.xtx-shortcut li:last-child a {
  margin-right: 0;
}

.xtx-shortcut li:last-child a::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 16px;
  margin-top: -3px;
  margin-right: 8px;
  /* ps */
  /* background-color: red; */
  background: url(../images/sprites.png) -160px -70px;
  /* 垂直对齐方式 */
  vertical-align: middle;
}

/* 主导航模块：.xtx-main-nav */

.xtx-main-nav {
  height: 130px;
  padding-top: 30px;
  /* 自动内减 */
  box-sizing: border-box;
  /* ps */
  /* background-color: pink; */
}

.xtx-main-nav .logo {
  width: 207px;
  height: 70px;
  margin-left: 25px;
  /* ps */
  /* background-color: red; */
}

.xtx-main-nav .logo a {
  display: block;
  height: 70px;
  background: url('../images/logo.png');
  background-size: 100% 100%;
  /* 让a标签里面的文字看不到 */
  font-size: 0;
}

.xtx-main-nav nav {
  margin-left: 40px;
}

.xtx-main-nav nav li {
  float: left;
  height: 70px;
  margin-right: 48px;
  line-height: 70px;
}

.xtx-main-nav ul a:hover {
  color: #27ba9b;
  border-bottom: 1px solid #27ba9b;
  padding-bottom: 7px;
}

.xtx-main-nav .search {
  position: relative;
  width: 172px;
  height: 30px;
  margin-top: 24px;
  margin-left: 34px;
  /* ps */
  /* background-color: orange; */
}

.xtx-main-nav .search::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 18px;
  height: 18px;
  /* ps */
  /* background-color: red; */
  background: url('../images/sprites.png') -80px -70px;
}

.xtx-main-nav .search input {
  width: 172px;
  height: 30px;
  border-bottom: 2px solid #e7e7e7;
  padding-left: 31px;
  transition: border-bottom 0.5s;
}

.xtx-main-nav .search input:hover {
  border-bottom: 2px solid #27ba9b;
}

.xtx-main-nav .cart {
  position: relative;
  width: 23px;
  height: 23px;
  margin-top: 28px;
  margin-left: 15px;
  /* ps */
  /* background-color: skyblue; */
  background: url('../images/sprites.png') -120px -70px;
}

.xtx-main-nav .cart span {
  position: absolute;
  top: -5px;
  right: -12px;
  width: 20px;
  height: 15px;
  background-color: #e26237;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  text-align: center;
  line-height: 15px;
}

/* 宣传服务：.xtx-service */

.xtx-service {
  height: 174px;
  background-color: #333;
}

.xtx-service .container {
  width: 1393px;
  height: 173px;
  border-bottom: 1px solid #434343;
  /* ps */
  /* background-color: pink; */
}

.xtx-service .container a {
  float: left;
  width: 33.33%;
  height: 173px;
  /* ps */
  /* background-color: skyblue; */
  text-align: center;
  line-height: 173px;
  font-size: 28px;
  color: #fff;
}

.xtx-service .container a::before {
  content: '';
  display: inline-block;
  width: 58px;
  height: 58px;
  margin-right: 19px;
  /* ps */
  /* background-color: red; */
  background: url('../images/sprites.png') 0 0;
  /* 垂直对齐方式 */
  vertical-align: middle;
}

.xtx-service a:nth-child(2)::before {
  background: url('../images/sprites.png') -130px 0;
}

.xtx-service a:nth-child(3)::before {
  background: url('../images/sprites.png') -65px 0;
}

/* 版权信息：.xtx-copyright */

.xtx-copyright {
  height: 168px;
  background-color: #333;
}

.xtx-copyright .container {
  height: 168px;
  padding-top: 41px;
  box-sizing: border-box;
  /* ps */
  /* background-color: skyblue; */
  text-align: center;
  font-size: 14px;
  color: #999;
}

.xtx-copyright .container a {
  color: #999;
}

.xtx-copyright .container p:first-child {
  height: 35px;
}